package top.lixunda.ecommerce.server.good.api.entity.db;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author Xumda
 * @since 2020-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("simple_review_detail")
@ApiModel(value="SimpleReviewDetailDO对象", description="VIEW")
public class SimpleReviewDetailDO extends Model<SimpleReviewDetailDO> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一id")
    @TableId("id")
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "用户名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "店铺id")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "店铺名称")
    @TableField("store_name")
    private String storeName;

    @ApiModelProperty(value = "商品id")
    @TableField("good_id")
    private Integer goodId;

    @ApiModelProperty(value = "商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty(value = "评分")
    @TableField("score")
    private Integer score;

    @ApiModelProperty(value = "评论内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "评论创建时间，即发表评论时间")
    @TableField("time")
    private LocalDateTime time;

    @ApiModelProperty(value = "删除时间")
    @TableField("remove_time")
    private LocalDateTime removeTime;

    @ApiModelProperty(value = "删除人员id")
    @TableField("remove_user_id")
    private Integer removeUserId;

    @ApiModelProperty(value = "删除人员名称")
    @TableField("remove_user_name")
    private String removeUserName;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("useable")
    private Integer useable;

    @ApiModelProperty(value = "点赞次数")
    @TableField("praise")
    private Integer praise;


    @Override
    protected Serializable pkVal() {
        return id;
    }

}
